<template>
	<view class="mainpadding">
		<view class="tupbox dingwei" @click="tzxq">
			<image src="../static/image/system/cd.png" mode=""></image>
			<view class="nkbtn weizhi">年卡会员</view>
			<view class="nzti zitiwz">XXX场地会员卡</view>
		</view>
		<view class="tupbox dingwei margin_top">
			<image src="../static/image/system/jk.png" mode=""></image>
			<view class="jkbtn weizhi">季卡会员</view>
			<view class="jkzt zitiwz">XXX场地会员卡</view>
		</view>
		<view class="tupbox dingwei margin_top">
			<image src="../static/image/system/yk.png" mode=""></image>
			<view class="ykbtn weizhi">月卡会员</view>
			<view class="ykzt zitiwz">XXX场地会员卡</view>
		</view>
		<view class="tupbox dingwei margin_top">
			<image src="../static/image/system/ck.png" mode=""></image>
			<view class="ckbtn weizhi">次卡会员</view>
			<view class="ckzi zitiwz">XXX场地会员卡</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				type: "",
				text: "",
			}
		},
		onLoad(options) {
			this.type = options.id
			let text = ""
			if (this.type == 1) {
				this.text = "场地会员卡"
			} else if (this.type == 2) {
				this.text = "俱乐部会员卡"
			}
			uni.setNavigationBarTitle({
				title: this.text
			});
		},
		methods: {
			// 跳转详情
			tzxq() {
				uni.navigateTo({
					url: '/pages_mypage/changdihuiyuankxq'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.ckzi {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #576E8B;
	}

	.ykzt {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #DC9253;
	}

	.jkzt {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #E8A10C;
	}

	.zitiwz {
		position: absolute;
		top: 90rpx;
		left: 190rpx;
	}

	.ckbtn {
		background-color: #A1BCDE;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.nzti {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #F5E1B5;
	}

	.ykbtn {
		background-color: #F9C99E;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #F2892E;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.jkbtn {
		background-color: #FFE8C0;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #F8890A;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.nkbtn {
		background-color: #D3B47D;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #2D2113;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.weizhi {
		position: absolute;
		top: 30rpx;
		left: 0;
	}

	.tupbox {
		width: 100%;
		height: 240rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>